package com.tuanzi.loan.business.repository.settlement;

import com.tuanzi.loan.business.entity.settlement.CompanyInfo;
import com.tuanzi.loan.business.repository.settlement.custom.CompanyInfoRepositoryCustom;
import com.tuanzi.loan.core.repository.JPAAuditRepository;

import java.util.List;

/**
 * @author caiwanlin
 * @create 2018-01-12 9:56
 */
public interface CompanyInfoRepository extends CompanyInfoRepositoryCustom,JPAAuditRepository<CompanyInfo,Long> {

    CompanyInfo findCompanyInfoByCompanyNameAndProductName(String companyName, String productName);

    CompanyInfo findCompanyInfoByCompanyName(String companyName);

    List<CompanyInfo> findCompaniesByAuditStatus(Integer auditStatus);
}
